<!DOCTYPE html>
<html>
<head>
<title>员工合同管理</title>
#parse("sys/header.html")
</head>
<body>
<div id="rrapp" v-cloak>
	<div v-show="showList">
		<div class="grid-btn">
			<div class="form-group col-sm-2">
				<input type="text" class="form-control" v-model="q.name" @keyup.enter="query" placeholder="姓名">
			</div>
			<a class="btn btn-default" @click="query">查询</a>
			#if($shiro.hasPermission("empcontract:save"))
			<a class="btn btn-primary hidden" @click="add" ><i class="fa fa-plus"></i>&nbsp;新增</a>
			#end
			#if($shiro.hasPermission("empcontract:update"))
			<a class="btn btn-primary hidden" @click="update"><i class="fa fa-pencil-square-o"></i>&nbsp;修改</a>
			#end
			#if($shiro.hasPermission("empcontract:delete"))
			<a class="btn btn-primary hidden" @click="del"><i class="fa fa-trash-o"></i>&nbsp;删除</a>
			#end
			#if($shiro.hasPermission("empcontract:firstaudit"))
			<a class="btn btn-primary" @click="firstaudit"><i class="fa fa-pencil-square-o"></i>&nbsp;一审</a>
			#end
			#if($shiro.hasPermission("empcontract:secondaudit"))
			<a class="btn btn-primary" @click="secondaudit"><i class="fa fa-pencil-square-o"></i>&nbsp;二审</a>
			#end
		</div>
	    <table id="jqGrid"></table>
	    <div id="jqGridPager"></div>
    </div>
    
    <div v-show="!showList" class="panel panel-default">
		<div class="panel-heading">{{title}}</div>
		<form class="form-horizontal">
			<div class="form-group">
			   	<div class="col-sm-1 control-label">合同编号</div>
			   	<div class="col-sm-2">
			      <input type="text" class="form-control" v-model="empContract.conId" placeholder="合同编号"/>
			    </div>

				<div class="col-sm-1 control-label">员工编号</div>
				<div class="col-sm-2">
					<input type="text" class="form-control" v-model="empContract.empNo" placeholder="员工编号"/>
				</div>

				<div class="col-sm-1 control-label">员工姓名</div>
				<div class="col-sm-2">
					<input type="text" class="form-control" v-model="empContract.empName" placeholder="员工姓名"/>
				</div>
			</div>

			<div class="form-group">
				<div class="col-sm-1 control-label">员工身份证号</div>
				<div class="col-sm-2">
					<input type="text" class="form-control" v-model="empContract.empCardno" placeholder="员工身份证号"/>
				</div>

				<div class="col-sm-1 control-label">合同起始时间</div>
				<div class="col-sm-2">
					<input type="text" class="form-control" v-model="empContract.conStartTime" placeholder="合同起始时间"/>
				</div>

				<div class="col-sm-1 control-label">合同终止时间</div>
				<div class="col-sm-2">
					<input type="text" class="form-control" v-model="empContract.conEndTime" placeholder="合同终止时间"/>
				</div>

			</div>

			<div class="form-group">
				<div class="col-sm-1 control-label">合同期限</div>
				<div class="col-sm-2">
					<input type="text" class="form-control" v-model="empContract.conDeadline" placeholder="合同期限"/>
				</div>

				<div class="col-sm-1 control-label">试用期起始时间</div>
				<div class="col-sm-2">
					<input type="text" class="form-control" v-model="empContract.tryStartTime" placeholder="试用期起始时间"/>
				</div>

				<div class="col-sm-1 control-label">试用期终止时间</div>
				<div class="col-sm-2">
					<input type="text" class="form-control" v-model="empContract.tryEndTime" placeholder="试用期终止时间"/>
				</div>
			</div>
			<div class="form-group">
			   	<div class="col-sm-1 control-label">试用期期限</div>
			   	<div class="col-sm-2">
			      <input type="text" class="form-control" v-model="empContract.tryDeadline" placeholder="试用期期限"/>
			    </div>

			   	<div class="col-sm-1 control-label">工作单位</div>
			   	<div class="col-sm-2">
			      <input type="text" class="form-control" v-model="empContract.jobUnit" placeholder="工作单位"/>
			    </div>

			   	<div class="col-sm-1 control-label">工作地点</div>
			   	<div class="col-sm-2">
			      <input type="text" class="form-control" v-model="empContract.jobPosition" placeholder="工作地点"/>
			    </div>
			</div>

			<div class="form-group">
			   	<div class="col-sm-1 control-label">工作制</div>
			   	<div class="col-sm-2">
			      <input type="text" class="form-control" v-model="empContract.jobInstitution" placeholder="工作制"/>
			    </div>

			   	<div class="col-sm-1 control-label">合同方式</div>
			   	<div class="col-sm-2">
			      <input type="text" class="form-control" v-model="empContract.conType" placeholder="合同方式"/>
			    </div>

			   	<div class="col-sm-1 control-label">录入人</div>
			   	<div class="col-sm-2">
			      <input type="text" class="form-control" v-model="empContract.operatePerson" placeholder="录入人"/>
			    </div>
			</div>

			<div class="form-group">
			   	<div class="col-sm-1 control-label">是否生效</div>
			   	<div class="col-sm-2">
			      <input type="text" class="form-control" v-model="empContract.ifEffective" placeholder="是否生效"/>
			    </div>

			   	<div class="col-sm-1 control-label">是否续签</div>
			   	<div class="col-sm-2">
			      <input type="text" class="form-control" v-model="empContract.isContinue" placeholder="是否续签"/>
			    </div>

			   	<div class="col-sm-1 control-label">工资发放日</div>
			   	<div class="col-sm-2">
			      <input type="text" class="form-control" v-model="empContract.payGiveDate" placeholder="工资发放日"/>
			    </div>
			</div>

			<div class="form-group">
			   	<div class="col-sm-1 control-label">试用期工资</div>
			   	<div class="col-sm-2">
			      <input type="text" class="form-control" v-model="empContract.tryPeriodPay" placeholder="试用期工资"/>
			    </div>

			   	<div class="col-sm-1 control-label">转正计算方式</div>
			   	<div class="col-sm-2">
			      <input type="text" class="form-control" v-model="empContract.formalComputeType" placeholder="转正计算方式"/>
			    </div>

			   	<div class="col-sm-1 control-label">月工资</div>
			   	<div class="col-sm-2">
			      <input type="text" class="form-control" v-model="empContract.monthPay" placeholder="月工资"/>
			    </div>
			</div>

			<div class="form-group">
			   	<div class="col-sm-1 control-label">社保</div>
			   	<div class="col-sm-2">
			      <input type="text" class="form-control" v-model="empContract.societySecure" placeholder="社保"/>
			    </div>

			   	<div class="col-sm-1 control-label">解除或终止日期</div>
			   	<div class="col-sm-2">
			      <input type="text" class="form-control" v-model="empContract.relieveOrEndDate" placeholder="解除或终止日期"/>
			    </div>

			   	<div class="col-sm-1 control-label">解除或终止原因</div>
			   	<div class="col-sm-2">
			      <input type="text" class="form-control" v-model="empContract.relieveOrEndReason" placeholder="解除或终止原因"/>
			    </div>
			</div>

			<div class="form-group">
			   	<div class="col-sm-1 control-label">有无经济补偿</div>
			   	<div class="col-sm-2">
			      <input type="text" class="form-control" v-model="empContract.ifEconomicCompensate" placeholder="有无经济补偿"/>
			    </div>
			</div>

			<div class="form-group">
				<div class="col-sm-2 control-label"></div>
				<div class="col-sm-2 control-label"></div>
				<input type="button" class="btn btn-primary" @click="saveOrUpdate" value="确定"/>
				&nbsp;&nbsp;<input type="button" class="btn btn-warning" @click="reload" value="返回"/>
			</div>
		</form>
	</div>
</div>

<script src="${rc.contextPath}/js/empManage/empcontract.js?_${date.systemTime}"></script>
</body>
</html>